package integration;

public class IntegratorBase implements Integrator {
	/*
	 * Base class for integrators.  Implements Euler's method if not subclassed.
	 */

	Integrable sys;
	
	public IntegratorBase(Integrable s) {sys = s; adjustSpace();}
	
	public void findSlope() {
		sys.findSlope();
	}
	
	public void takeStep(float dt) {
		sys.advanceState(dt);
	}
	
	public void finalizeSlope(float dt) {
	}
	
	public void takeFinalStep(float dt) {
		sys.advanceState(dt);
	}
	
	public void adjustSpace() {}
}
